<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button type="button" id="btn">人员信息</button>
    <button type="button" id="bt1n">人员信息</button>
</body>
    <script src="jsj/jQ.js" type="text/javascript" charset="UTF-8"></script>
    <script type="text/javascript">
        $.ajax({
            type:"get",
            url:"http://124.220.159.29:8089/user/getAll",
            data:{
                   uname:"ybb"
            },
            success:function(data){
               console.log(data);
               var obj =JSON.parse(data);
               console.log(obj);
            }
        });
$("#btn").click(function(){
    $.ajax({
            type:"get",
            url:"http://124.220.159.29:8089/user/getAll",
            data:{
            },
            dataType:"json",
            success:function(data){
               console.log(data);
            var ul=$("<ul></ul>");
            for(var i=0;i<data.length;i++){
                var user=data[i];
                var li="<li>"+user.name+user.password+user.gender+user.introduction+user.gender+user.goodAt+"</li>";
                ul.append(li);
            }
           console.log(ul);
           $("body").append(ul);
            }
        });
})
$.ajax({
            type:"get",
            url:"http://124.220.159.29:8089/info/getInfo",
            data:{
                   uname:"ybb"
            },
            success:function(data){
               console.log(data);
               var obj =JSON.parse(data);
               console.log(obj);
            }
        });
$("#bt1n").click(function(){
    $.ajax({
            type:"get",
            url:"http://124.220.159.29:8089/info/getInfo",
            data:{
            },
            dataType:"json",
            success:function(data){
               console.log(data);
            var ul=$("<ul></ul>");
            for(var i=0;i<data.length;i++){
                var user=data[i];
                var li="<li>"+user.allIntroduction+"</li>";
                ul.append(li);
            }
           console.log(ul);
           $("body").append(ul);
            }
        });
})
           
    </script>

</html>